
class LehmerRandomer():
    def __init__(self,a,m,x):
        self.a=a
        self.m=m
        self.x=x
    
    def gen(self):
        self.x = (self.a*self.x)%self.m
        return self.x

random1 = LehmerRandomer(11,64,1)
result = [random1.gen() for i in range(10)]
print(result)


random1 = LehmerRandomer(20,64,1)
result = [random1.gen() for i in range(10)]
print(result)
random1 = LehmerRandomer(11,60,1)
result = [random1.gen() for i in range(10)]
print(result)
random1 = LehmerRandomer(11,64,2)
result = [random1.gen() for i in range(10)]
print(result)
